package com.mapforge.selection;

import com.mapforge.map.tools.undo.TilePoint;

public class TileSelection extends DiscontinuousSelectionList {

	@Override
	public void addPoint(ComparablePoint p) {
		if (!(p instanceof TilePoint)) {
			throw new IllegalArgumentException(
					"TileSelection only accepts instances of TilePoint.");
		}
		super.addPoint(p);
	}

	// public TilePoint getTilePointAt(int x, int y) {
	// NULL_POINT.setLocation(x, y);
	// int index = list.indexOf(NULL_POINT);
	// if (index > -1) {
	// return list.get(index);
	// } else {
	// return null;
	// }
	// }
}